/*
 *	Copyright © 2013 Changsha Shishuo Network Technology Co., Ltd. All rights reserved.
 *	长沙市师说网络科技有限公司 版权所有
 *	http://www.shishuo.com
 */

package com.hlingsoft.cms.dao;

import com.hlingsoft.cms.entity.Decoration;
import com.hlingsoft.cms.entity.Tags;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * 达人申请
 *
 * @author Zhangjiale
 */

@Repository
public interface DecorationDao {


    /**
     * 添加图片
     *
     * @return Integer
     */
    public long addDecoration(Decoration decoration);


    /**
     * 通过id查询
     *
     * @return
     */
    public List<Decoration> getDecoration(@Param("type") int type);


    public List<Decoration> getAllDecoration(@Param("offset") long offset,
                                             @Param("rows") long rows);


    public int getAllDecorationCount();


//	public Tags getTagsById(@Param("id") long id);
//
//

    /**
     * 更新
     *
     * @param id
     * @return
     */
    public int deleteDecoration(@Param("id") long id);


}
